<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","学生详情");
	request.setAttribute("modelConfigPath", "groupActivity");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">

</style>

<t:panel cssClass="panel-flat form-detailed form-xs" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="academicReport" action="/admin/groupActivity/academicReport/save" method="post" cssClass="form-horizontal">
            <div class="hide">
                <t:hidden path="reportId"/>
            </div>
            <t:formgroup>
                <t:label path="date" cssClass="col-sm-2" />
                <t:date path="date" placeholder="-:-:-" colClass="col-sm-4" />
                <t:label path="week" cssClass="col-sm-2" />
                <t:select2 path="week" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="people" cssClass="col-sm-2" />
                <t:input path="people" colClass="col-sm-4" />
                <t:label path="type" cssClass="col-sm-2" />
                <t:selectButton path="type" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="content" cssClass="col-sm-2" />
                <t:input path="content" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="schedule" cssClass="col-sm-2" />
                <t:textarea path="schedule" rows="4" colClass="col-sm-8" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="comments" cssClass="col-sm-2" />
                <t:textarea path="comments" rows="6" colClass="col-sm-8" />
            </t:formgroup>
        </t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}
	
	$(function(){
		var options={}
		options.links=[];
		options.links.push({id:'week',selector:'#week',paramName:'week',depend:'first'});
		
		
		$.linker(options);
	})
</script>

<%@ include file="/WEB-INF/views/shared/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>